package zhklappoint.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

import zhklappoint.dao.WxNameDao;
import zhklappoint.entity.WxName;
import zhklappoint.service.WxInsertInfoService;

@Service
public class WxInsertInfoServiceImpl implements WxInsertInfoService{

	@Autowired
	WxNameDao wxNameDao;
	
	@Override
	public void insertIntoWxName(WxName wxName) {
		if(!ObjectUtils.isEmpty(wxName)) {
			wxNameDao.save(wxName);
		}
		
	}

	@Override
	public List<WxName> findAllObj() {
		return wxNameDao.findAll();
	}

	@Override
	public WxName findByName(String name) {
		
		return wxNameDao.findByWxName(name);
	}
	

}
